package com.cw.jeeyt.controller.system;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.cw.jeeyt.common.web.BaseController;

@Controller
@RequestMapping("/error")
public class HandleController extends BaseController {
    /**
     * 跳转到没有权限提示页面
     *
     * @return
     */
    @RequestMapping("/noAuth")
    public ModelAndView toNoAuth() {
        ModelAndView mv = new ModelAndView("error/permission");
        return mv;
    }

    /**
     * 跳转到登录导航页面
     * @return
     */
    @RequestMapping("/error404")
    public ModelAndView toError404() {
        ModelAndView mv = new ModelAndView("error/404");
        return mv;
    }

    /**
     * 跳转到登录导航页面
     *
     * @return
     */
    @RequestMapping("/error400")
    public ModelAndView toError400() {
        ModelAndView mv = new ModelAndView("error/400");
        return mv;
    }

    /**
     * 跳转到登录导航页面
     *
     * @return
     */
    @RequestMapping("/error401")
    public ModelAndView toError401() {
        ModelAndView mv = new ModelAndView("error/401");
        return mv;
    }

    /**
     * 跳转到登录导航页面
     *
     * @return
     */
    @RequestMapping("/error403")
    public ModelAndView toError403() {
        ModelAndView mv = new ModelAndView("error/403");
        return mv;
    }

    /**
     * 跳转到登录导航页面
     *
     * @return
     */
    @RequestMapping("/error500")
    public ModelAndView toError500() {
        ModelAndView mv = new ModelAndView("error/500");
        return mv;
    }
}
